package com.xinsmartsky.penmaji.penmaji;

/**
 * Created by wangxiao on 16-1-30.
 */
public class DemoThread1 {
    static DemoThread1 dd = new DemoThread1();
    public static void main(String[] args){
        //子线程

        //主线程
        while (true){
            synchronized (dd){
                try {
                    dd.wait();
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
